package cn.anecansaitin.jep.parser.ast.node.expression;

import cn.anecansaitin.jep.parser.ast.node.NodeCreationResult;
import cn.anecansaitin.jep.types.TypeInfo;

public final class Array extends Expression {
    private final Expression array;
    private final Expression index;

    private Array(Expression array, Expression index, TypeInfo resultType, int line, int column) {
        super(resultType, line, column);
        this.array = array;
        this.index = index;
    }

    public Expression array() {
        return array;
    }

    public Expression index() {
        return index;
    }
}